package com.mtnz.njk.entity;

import lombok.Data;

import javax.persistence.*;
import java.util.List;

/**
 * @Description: 订单信息实体类
 * @Author: FBL
 * @CreateDate: 2019\7\28 0028 17:42
 * @Version: 1.0
 */
@Table(name = "order_info")
@Data
public class OrderInfoEntity {
    @Id
    @Column(name = "order_info_id")
    private String orderInfoId;
    @Column(name = "order_number")
    private String orderNumber;
    @Column(name = "order_date")
    @OrderBy(value = "DESC")
    private String orderDate;
    @Column(name = "pay_money")
    private Double payMoney;
    @Column(name = "reality_money")
    private Double realityMoney;
    @Column(name = "pay_method")
    private String payMethod;
    @Column(name = "pay_balance")
    private Double payBalance;
    @Column(name = "pay_date")
    private String payDate;
    @Column(name = "user_address")
    private String userAddress;
    @Column(name = "user_id")
    private String userId;
    @Column(name = "user_phone")
    private String userPhone;
    @Column(name = "user_name")
    private String userName;
    @Column(name = "order_end_dateTime")
    private String orderEndDateTime;
    @Column(name = "order_status")
    private String orderStatus;
    private String province;
    private String city;
    private String month;
    private String year;
    private String day;
    @Column(name = "deal_status")
    private String dealStatus;
    @Column(name = "order_explain")
    private String orderExplain;
    @Column(name = "coupon_id")
    private String couponId;

    @Transient
    private String addressId;

    @Transient
    private List<OrderProductEntity> productEntities;

    @Transient
    private List<BalanceOrderEntity> balanceOrders;

    @Transient
    private String serviceName;


}
